package com.print.dao;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

import com.print.domain.UserItem;

public class UserItemDAOImpl implements UserItemDAO {
	private HibernateTemplate hibernateTemplate;
	
	public void setSessionFactory(SessionFactory sessionFactory) {
		this.hibernateTemplate = new HibernateTemplate(sessionFactory);
	}
	
	@Override
	public void saveUserItem(UserItem userItem) {
		this.hibernateTemplate.save(userItem);
	}
}